package com.oocl.products.service.impl;

import com.oocl.products.dao.UserDao;
import com.oocl.products.dao.impl.UserDaoImpl;
import com.oocl.products.pojo.User;
import com.oocl.products.service.UserService;

public class UserServiceImpl implements UserService {
	private UserDao userDao;
	
	public UserServiceImpl() {
		userDao = new UserDaoImpl();
	}
	
	public User login(String name, String pwd) {
		return userDao.queryUserByNameAndPwd(name, pwd);
	}
	
}
